﻿@model Fmis21_10.Models.Tournament

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Layout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Tournament</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TournamentId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TournamentId)
            @Html.ValidationMessageFor(model => model.TournamentId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TournamentName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TournamentName)
            @Html.ValidationMessageFor(model => model.TournamentName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Season)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Season)
            @Html.ValidationMessageFor(model => model.Season)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Association)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Association)
            @Html.ValidationMessageFor(model => model.Association)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Soccertype)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Soccertype)
            @Html.ValidationMessageFor(model => model.Soccertype)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NumberOfRound)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NumberOfRound)
            @Html.ValidationMessageFor(model => model.NumberOfRound)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartDate)
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EndDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndDate)
            @Html.ValidationMessageFor(model => model.EndDate)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
